﻿using Prism.Mvvm;
using System.ComponentModel.DataAnnotations;

namespace PLCSharp.CoreModel.Common
{
    public class ErrorLog : BindableBase
    {
 
        [Key]
        public Guid ID { get; set; } = Guid.NewGuid();

        public ErrorLog(string message)
        {
            Message = message;
            Time = DateTime.Now;

        }

        private string _Message;
        public string Message
        {
            get { return _Message; }
            set { SetProperty(ref _Message, value); }
        }

        private DateTime _Time;
        public DateTime Time
        {
            get { return _Time; }
            set { SetProperty(ref _Time, value); }
        }

        private bool _IsConfirm;
        public bool IsConfirm
        {
            get { return _IsConfirm; }
            set { SetProperty(ref _IsConfirm, value); }
        }
    }
}
